<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>QCNSim: QcnSim/QcnSensorTrafficGenerator.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">QCNSim
   </div>
   <div id="projectbrief">Simulator for Quake-Catcher Network</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d21be12960473ba5c51e5f9beea3525e.html">QcnSim</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">QcnSensorTrafficGenerator.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_qcn_sensor_traffic_generator_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_qcn_sensor_traffic_generator_8h.html">QcnSensorTrafficGenerator.h</a>&quot;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="class_qcn_sensor_traffic_generator.html#a3ba249e3aa7b69351987b78c0492c52c">   41</a></span>&#160;<a class="code" href="class_qcn_sensor_traffic_generator.html#a3ba249e3aa7b69351987b78c0492c52c">QcnSensorTrafficGenerator::QcnSensorTrafficGenerator</a>(<a class="code" href="class_simulator_globals.html">SimulatorGlobals</a> &amp;simulatorGlobals, <a class="code" href="class_scheduler.html">Scheduler</a> &amp;scheduler, <a class="code" href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a> eventType, std::shared_ptr&lt;Entity&gt; tokenContents,</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        std::shared_ptr&lt;Entity&gt; source, std::shared_ptr&lt;Entity&gt; destination, <span class="keywordtype">int</span> priority, <span class="keywordtype">double</span> latitude, <span class="keywordtype">double</span> longitude,</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> qcnExplorerSensorId, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> regionId): <a class="code" href="class_traffic_generator.html">TrafficGenerator</a>(simulatorGlobals, scheduler, eventType, tokenContents,</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;        source, destination, priority), latitude(latitude), longitude(longitude), qcnExplorerSensorId(qcnExplorerSensorId),</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        regionId(regionId) {</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;}</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="class_qcn_sensor_traffic_generator.html#a0995946db4b2c3bed8f6a7578aa8843e">   59</a></span>&#160;std::shared_ptr&lt;Token&gt; <a class="code" href="class_qcn_sensor_traffic_generator.html#a0995946db4b2c3bed8f6a7578aa8843e">QcnSensorTrafficGenerator::createInstanceTrafficEvent</a>(<span class="keywordtype">bool</span> recordRoute) {</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="comment">// Creates a token and assigns it class member values and a unique ID obtained from simulatorGlobals.</span></div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    std::shared_ptr&lt;Token&gt; token = <a class="code" href="class_traffic_generator.html#aa1943a93355f1856e639a0f163413249">TrafficGenerator::createInstanceTrafficEvent</a>(recordRoute);</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keywordflow">if</span> (token != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        <a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>.<a class="code" href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">schedule</a>(<a class="code" href="class_event.html">Event</a>(0.0, <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, token));</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    }</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="keywordflow">return</span> token;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;}</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="class_qcn_sensor_traffic_generator.html#a03538868aab2dc4bee73914c08b22ab2">   81</a></span>&#160;std::shared_ptr&lt;Token&gt; <a class="code" href="class_qcn_sensor_traffic_generator.html#a0995946db4b2c3bed8f6a7578aa8843e">QcnSensorTrafficGenerator::createInstanceTrafficEvent</a>(std::shared_ptr&lt;Entity&gt; tokenContents, <span class="keywordtype">bool</span> recordRoute) {</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="comment">// Creates a token and assigns it class member values and a unique ID obtained from simulatorGlobals.</span></div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    std::shared_ptr&lt;Token&gt; token = <a class="code" href="class_traffic_generator.html#aa1943a93355f1856e639a0f163413249">TrafficGenerator::createInstanceTrafficEvent</a>(tokenContents, recordRoute);</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <span class="keywordflow">if</span> (token != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        <a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>.<a class="code" href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">schedule</a>(<a class="code" href="class_event.html">Event</a>(0.0, <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, token));</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    }</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <span class="keywordflow">return</span> token;</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;}</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="class_qcn_sensor_traffic_generator.html#ad006b21d755b6e5c257ea848f4d2eed9">  103</a></span>&#160;std::shared_ptr&lt;Token&gt; <a class="code" href="class_qcn_sensor_traffic_generator.html#a0995946db4b2c3bed8f6a7578aa8843e">QcnSensorTrafficGenerator::createInstanceTrafficEvent</a>(std::vector&lt;std::shared_ptr&lt;Entity&gt;&gt; explicitRoute, <span class="keywordtype">bool</span> recordRoute) {</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    <span class="comment">// Creates a token and assigns it class member values and a unique ID obtained from simulatorGlobals.</span></div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    std::shared_ptr&lt;Token&gt; token = <a class="code" href="class_traffic_generator.html#aa1943a93355f1856e639a0f163413249">TrafficGenerator::createInstanceTrafficEvent</a>(explicitRoute, recordRoute);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <span class="keywordflow">if</span> (token != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        <a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>.<a class="code" href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">schedule</a>(<a class="code" href="class_event.html">Event</a>(0.0, <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, token));</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    }</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    <span class="keywordflow">return</span> token;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;}</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div>
<div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="class_qcn_sensor_traffic_generator.html#ace809aaedcebfa9695ec0da7b46bc83f">  126</a></span>&#160;std::shared_ptr&lt;Token&gt; <a class="code" href="class_qcn_sensor_traffic_generator.html#a0995946db4b2c3bed8f6a7578aa8843e">QcnSensorTrafficGenerator::createInstanceTrafficEvent</a>(std::shared_ptr&lt;Entity&gt; tokenContents, std::vector&lt;std::shared_ptr&lt;Entity&gt;&gt; explicitRoute,</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;                                                                             <span class="keywordtype">bool</span> recordRoute) {</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    <span class="comment">// Creates a token and assigns it class member values and a unique ID obtained from simulatorGlobals.</span></div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    std::shared_ptr&lt;Token&gt; token = <a class="code" href="class_traffic_generator.html#aa1943a93355f1856e639a0f163413249">TrafficGenerator::createInstanceTrafficEvent</a>(tokenContents, explicitRoute, recordRoute);</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <span class="keywordflow">if</span> (token != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;        <a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>.<a class="code" href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">schedule</a>(<a class="code" href="class_event.html">Event</a>(0.0, <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, token));</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    }</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <span class="keywordflow">return</span> token;</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;}</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div>
<div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="class_qcn_sensor_traffic_generator.html#a339f12bf7824af352d0dad4d65c3e353">  141</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="class_qcn_sensor_traffic_generator.html#a339f12bf7824af352d0dad4d65c3e353">QcnSensorTrafficGenerator::getLatitude</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_qcn_sensor_traffic_generator.html#ae0c102210846bb815bb6596cb0aa7ee6">latitude</a>;</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;}</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;</div>
<div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="class_qcn_sensor_traffic_generator.html#ac35f6f0c94d934b454ad68f743bfb011">  150</a></span>&#160;<span class="keywordtype">double</span> <a class="code" href="class_qcn_sensor_traffic_generator.html#ac35f6f0c94d934b454ad68f743bfb011">QcnSensorTrafficGenerator::getLongitude</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_qcn_sensor_traffic_generator.html#aaeb48832d02be6da6879b20ccbf27932">longitude</a>;</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;}</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;</div>
<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="class_qcn_sensor_traffic_generator.html#a5a03f7bfeab8aa2ba0178af6a67b69af">  159</a></span>&#160;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_qcn_sensor_traffic_generator.html#a5a03f7bfeab8aa2ba0178af6a67b69af">QcnSensorTrafficGenerator::getQcnExplorerSensorId</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_qcn_sensor_traffic_generator.html#a94979da414e7b879f6c31642c3b449f6">qcnExplorerSensorId</a>;</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;}</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;</div>
<div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="class_qcn_sensor_traffic_generator.html#a217fb0b0d8896f86c7b032f902fdb7f6">  168</a></span>&#160;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="class_qcn_sensor_traffic_generator.html#a217fb0b0d8896f86c7b032f902fdb7f6">QcnSensorTrafficGenerator::getRegionId</a>()<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="class_qcn_sensor_traffic_generator.html#a7475a4d95a64a53e641ed8d7b2fd167b">regionId</a>;</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;}</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;</div>
<div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="class_qcn_sensor_traffic_generator.html#a9b5d0138e8eb2b3758d46f4c747f093a">  177</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qcn_sensor_traffic_generator.html#a9b5d0138e8eb2b3758d46f4c747f093a">QcnSensorTrafficGenerator::setLatitude</a>(<span class="keywordtype">double</span> latitude) {</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    this-&gt;latitude = <a class="code" href="class_qcn_sensor_traffic_generator.html#ae0c102210846bb815bb6596cb0aa7ee6">latitude</a>;</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;}</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;</div>
<div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="class_qcn_sensor_traffic_generator.html#a838619c582b3df71b009b6cd1de56092">  186</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qcn_sensor_traffic_generator.html#a838619c582b3df71b009b6cd1de56092">QcnSensorTrafficGenerator::setLongitude</a>(<span class="keywordtype">double</span> longitude) {</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;    this-&gt;longitude = <a class="code" href="class_qcn_sensor_traffic_generator.html#aaeb48832d02be6da6879b20ccbf27932">longitude</a>;</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;}</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;</div>
<div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="class_qcn_sensor_traffic_generator.html#a375d3eaf1ce7792d46f13bd96900c914">  195</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qcn_sensor_traffic_generator.html#a375d3eaf1ce7792d46f13bd96900c914">QcnSensorTrafficGenerator::setQcnExplorerSensorId</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> qcnExplorerSensorId) {</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;    this-&gt;qcnExplorerSensorId = <a class="code" href="class_qcn_sensor_traffic_generator.html#a94979da414e7b879f6c31642c3b449f6">qcnExplorerSensorId</a>;</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;}</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;</div>
<div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="class_qcn_sensor_traffic_generator.html#a7c5683f657aa8c44344985acceae2cd1">  204</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_qcn_sensor_traffic_generator.html#a7c5683f657aa8c44344985acceae2cd1">QcnSensorTrafficGenerator::setRegionId</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> regionId) {</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    this-&gt;regionId = <a class="code" href="class_qcn_sensor_traffic_generator.html#a7475a4d95a64a53e641ed8d7b2fd167b">regionId</a>;</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;}</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;</div>
<div class="line"><a name="l00219"></a><span class="lineno"><a class="line" href="class_qcn_sensor_traffic_generator.html#a3079900c11310c8dff41ed7126e04dd2">  219</a></span>&#160;std::shared_ptr&lt;ProtocolDataUnit&gt; <a class="code" href="class_qcn_sensor_traffic_generator.html#a3079900c11310c8dff41ed7126e04dd2">QcnSensorTrafficGenerator::createInstanceTrafficEventPdu</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pduSize, <span class="keywordtype">bool</span> recordRoute) {</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;    <span class="comment">// Creates a PDU and assigns it class member values and a unique ID obtained from simulatorGlobals.</span></div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    <span class="comment">// Notice that the base class member function &quot;createInstance...&quot; is used here instead of the derived override:</span></div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;    <span class="comment">// the derived override schedules an event, and that is undesired here, since an event can only be scheduled &quot;after&quot; the PDU is created.</span></div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;    std::shared_ptr&lt;Token&gt; token = <a class="code" href="class_traffic_generator.html#aa1943a93355f1856e639a0f163413249">TrafficGenerator::createInstanceTrafficEvent</a>(recordRoute);</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;    <span class="keywordflow">if</span> (token == <span class="keyword">nullptr</span>) {</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;    }</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;    std::shared_ptr&lt;ProtocolDataUnit&gt; pdu(<span class="keyword">new</span> <a class="code" href="class_protocol_data_unit.html">ProtocolDataUnit</a>(token, pduSize));</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    <span class="comment">//std::shared_ptr&lt;ProtocolDataUnit&gt; pdu(new ProtocolDataUnit(TrafficGenerator::createInstanceTrafficEvent(recordRoute), pduSize));</span></div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;    <span class="keywordflow">if</span> (pdu != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;        <a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>.<a class="code" href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">schedule</a>(<a class="code" href="class_event.html">Event</a>(0.0, <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, pdu));</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;    }</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;    <span class="keywordflow">return</span> pdu;</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;}</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;</div>
<div class="line"><a name="l00247"></a><span class="lineno"><a class="line" href="class_qcn_sensor_traffic_generator.html#a56e864a5493086b7778bb0945fa4d070">  247</a></span>&#160;std::shared_ptr&lt;ProtocolDataUnit&gt; <a class="code" href="class_qcn_sensor_traffic_generator.html#a3079900c11310c8dff41ed7126e04dd2">QcnSensorTrafficGenerator::createInstanceTrafficEventPdu</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pduSize, std::shared_ptr&lt;Entity&gt; pduContents,</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;                                                                                           <span class="keywordtype">bool</span> recordRoute) {</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;    <span class="comment">// Creates a PDU and assigns it class member values and a unique ID obtained from simulatorGlobals.</span></div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    std::shared_ptr&lt;Token&gt; token = <a class="code" href="class_traffic_generator.html#aa1943a93355f1856e639a0f163413249">TrafficGenerator::createInstanceTrafficEvent</a>(pduContents, recordRoute);</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    <span class="keywordflow">if</span> (token == <span class="keyword">nullptr</span>) {</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;    }</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;    std::shared_ptr&lt;ProtocolDataUnit&gt; pdu(<span class="keyword">new</span> <a class="code" href="class_protocol_data_unit.html">ProtocolDataUnit</a>(token, pduSize));</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;    <span class="comment">//std::shared_ptr&lt;ProtocolDataUnit&gt; pdu(new ProtocolDataUnit(TrafficGenerator::createInstanceTrafficEvent(pduContents, recordRoute), pduSize));</span></div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;    <span class="keywordflow">if</span> (pdu != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;        <a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>.<a class="code" href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">schedule</a>(<a class="code" href="class_event.html">Event</a>(0.0, <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, pdu));</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;    }</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;    <span class="keywordflow">return</span> pdu;</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;}</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;</div>
<div class="line"><a name="l00274"></a><span class="lineno"><a class="line" href="class_qcn_sensor_traffic_generator.html#adae8db3855f6b39f9fd769ecbdd139df">  274</a></span>&#160;std::shared_ptr&lt;ProtocolDataUnit&gt; <a class="code" href="class_qcn_sensor_traffic_generator.html#a3079900c11310c8dff41ed7126e04dd2">QcnSensorTrafficGenerator::createInstanceTrafficEventPdu</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pduSize, std::vector&lt;std::shared_ptr&lt;Entity&gt;&gt; explicitRoute,</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;                                                                                           <span class="keywordtype">bool</span> recordRoute) {</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;    <span class="comment">// Creates a PDU and assigns it class member values and a unique ID obtained from simulatorGlobals.</span></div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;    std::shared_ptr&lt;Token&gt; token = <a class="code" href="class_traffic_generator.html#aa1943a93355f1856e639a0f163413249">TrafficGenerator::createInstanceTrafficEvent</a>(explicitRoute, recordRoute);</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;    <span class="keywordflow">if</span> (token == <span class="keyword">nullptr</span>) {</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;    }</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;    std::shared_ptr&lt;ProtocolDataUnit&gt; pdu(<span class="keyword">new</span> <a class="code" href="class_protocol_data_unit.html">ProtocolDataUnit</a>(token, pduSize));</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;    <span class="comment">//std::shared_ptr&lt;ProtocolDataUnit&gt; pdu(new ProtocolDataUnit(TrafficGenerator::createInstanceTrafficEvent(explicitRoute, recordRoute), pduSize));</span></div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;    <span class="keywordflow">if</span> (pdu != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;        <a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>.<a class="code" href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">schedule</a>(<a class="code" href="class_event.html">Event</a>(0.0, <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, pdu));</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;    }</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;    <span class="keywordflow">return</span> pdu;</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;}</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;</div>
<div class="line"><a name="l00302"></a><span class="lineno"><a class="line" href="class_qcn_sensor_traffic_generator.html#ac00c0a9f03e0651da6ddb33f0a062af5">  302</a></span>&#160;std::shared_ptr&lt;ProtocolDataUnit&gt; <a class="code" href="class_qcn_sensor_traffic_generator.html#a3079900c11310c8dff41ed7126e04dd2">QcnSensorTrafficGenerator::createInstanceTrafficEventPdu</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> pduSize, std::shared_ptr&lt;Entity&gt; tokenContents,</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;                                                                                           std::vector&lt;std::shared_ptr&lt;Entity&gt;&gt; explicitRoute,</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;                                                                                           <span class="keywordtype">bool</span> recordRoute) {</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;    <span class="comment">// Creates a PDU and assigns it class member values and a unique ID obtained from simulatorGlobals.</span></div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;    std::shared_ptr&lt;Token&gt; token = <a class="code" href="class_traffic_generator.html#aa1943a93355f1856e639a0f163413249">TrafficGenerator::createInstanceTrafficEvent</a>(tokenContents, explicitRoute, recordRoute);</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;    <span class="keywordflow">if</span> (token == <span class="keyword">nullptr</span>) {</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;    }</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;    std::shared_ptr&lt;ProtocolDataUnit&gt; pdu(<span class="keyword">new</span> <a class="code" href="class_protocol_data_unit.html">ProtocolDataUnit</a>(token, pduSize));</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;    <span class="comment">//std::shared_ptr&lt;ProtocolDataUnit&gt; pdu(new ProtocolDataUnit(TrafficGenerator::createInstanceTrafficEvent(tokenContents, explicitRoute, recordRoute), pduSize));</span></div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;    <span class="keywordflow">if</span> (pdu != <span class="keyword">nullptr</span>) {</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;        <a class="code" href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">scheduler</a>.<a class="code" href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">schedule</a>(<a class="code" href="class_event.html">Event</a>(0.0, <a class="code" href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">eventType</a>, pdu));</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;    }</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;    <span class="keywordflow">return</span> pdu;</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;}</div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_a0995946db4b2c3bed8f6a7578aa8843e"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#a0995946db4b2c3bed8f6a7578aa8843e">QcnSensorTrafficGenerator::createInstanceTrafficEvent</a></div><div class="ttdeci">std::shared_ptr&lt; Token &gt; createInstanceTrafficEvent(bool recordRoute=false) override</div><div class="ttdoc">Creates an instance of QCN sensor traffic event. </div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8cpp_source.html#l00059">QcnSensorTrafficGenerator.cpp:59</a></div></div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_a5a03f7bfeab8aa2ba0178af6a67b69af"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#a5a03f7bfeab8aa2ba0178af6a67b69af">QcnSensorTrafficGenerator::getQcnExplorerSensorId</a></div><div class="ttdeci">unsigned int getQcnExplorerSensorId() const </div><div class="ttdoc">Get QCN Explorer Sensor ID. </div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8cpp_source.html#l00159">QcnSensorTrafficGenerator.cpp:159</a></div></div>
<div class="ttc" id="class_protocol_data_unit_html"><div class="ttname"><a href="class_protocol_data_unit.html">ProtocolDataUnit</a></div><div class="ttdoc">Protocol Data Unit class. </div><div class="ttdef"><b>Definition:</b> <a href="_protocol_data_unit_8h_source.html#l00033">ProtocolDataUnit.h:33</a></div></div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_a217fb0b0d8896f86c7b032f902fdb7f6"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#a217fb0b0d8896f86c7b032f902fdb7f6">QcnSensorTrafficGenerator::getRegionId</a></div><div class="ttdeci">unsigned int getRegionId() const </div><div class="ttdoc">Get Region ID. </div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8cpp_source.html#l00168">QcnSensorTrafficGenerator.cpp:168</a></div></div>
<div class="ttc" id="_event_type_8h_html_a2628ea8d12e8b2563c32f05dc7fff6fa"><div class="ttname"><a href="_event_type_8h.html#a2628ea8d12e8b2563c32f05dc7fff6fa">EventType</a></div><div class="ttdeci">EventType</div><div class="ttdoc">EventType enum class. </div><div class="ttdef"><b>Definition:</b> <a href="_event_type_8h_source.html#l00029">EventType.h:29</a></div></div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_a3ba249e3aa7b69351987b78c0492c52c"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#a3ba249e3aa7b69351987b78c0492c52c">QcnSensorTrafficGenerator::QcnSensorTrafficGenerator</a></div><div class="ttdeci">QcnSensorTrafficGenerator(SimulatorGlobals &amp;simulatorGlobals, Scheduler &amp;scheduler, EventType eventType, std::shared_ptr&lt; Entity &gt; tokenContents, std::shared_ptr&lt; Entity &gt; source, std::shared_ptr&lt; Entity &gt; destination, int priority, double latitude, double longitude, unsigned int qcnExplorerSensorId=0, unsigned int regionId=0)</div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8cpp_source.html#l00041">QcnSensorTrafficGenerator.cpp:41</a></div></div>
<div class="ttc" id="class_scheduler_html"><div class="ttname"><a href="class_scheduler.html">Scheduler</a></div><div class="ttdoc">Scheduler class. </div><div class="ttdef"><b>Definition:</b> <a href="_scheduler_8h_source.html#l00058">Scheduler.h:58</a></div></div>
<div class="ttc" id="class_event_html"><div class="ttname"><a href="class_event.html">Event</a></div><div class="ttdoc">Event class. </div><div class="ttdef"><b>Definition:</b> <a href="_event_8h_source.html#l00035">Event.h:35</a></div></div>
<div class="ttc" id="_qcn_sensor_traffic_generator_8h_html"><div class="ttname"><a href="_qcn_sensor_traffic_generator_8h.html">QcnSensorTrafficGenerator.h</a></div></div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_a9b5d0138e8eb2b3758d46f4c747f093a"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#a9b5d0138e8eb2b3758d46f4c747f093a">QcnSensorTrafficGenerator::setLatitude</a></div><div class="ttdeci">void setLatitude(double latitude)</div><div class="ttdoc">Set Latitude. </div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8cpp_source.html#l00177">QcnSensorTrafficGenerator.cpp:177</a></div></div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_a3079900c11310c8dff41ed7126e04dd2"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#a3079900c11310c8dff41ed7126e04dd2">QcnSensorTrafficGenerator::createInstanceTrafficEventPdu</a></div><div class="ttdeci">std::shared_ptr&lt; ProtocolDataUnit &gt; createInstanceTrafficEventPdu(unsigned int pduSize, bool recordRoute=false) override</div><div class="ttdoc">Creates an instance of QCN sensor traffic event with PDU. </div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8cpp_source.html#l00219">QcnSensorTrafficGenerator.cpp:219</a></div></div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_aaeb48832d02be6da6879b20ccbf27932"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#aaeb48832d02be6da6879b20ccbf27932">QcnSensorTrafficGenerator::longitude</a></div><div class="ttdeci">double longitude</div><div class="ttdoc">Longitude of this sensor. </div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8h_source.html#l00038">QcnSensorTrafficGenerator.h:38</a></div></div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_ae0c102210846bb815bb6596cb0aa7ee6"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#ae0c102210846bb815bb6596cb0aa7ee6">QcnSensorTrafficGenerator::latitude</a></div><div class="ttdeci">double latitude</div><div class="ttdoc">Latitude of this sensor. </div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8h_source.html#l00037">QcnSensorTrafficGenerator.h:37</a></div></div>
<div class="ttc" id="class_scheduler_html_ae84f19f548d606f50fba69d00fe691b1"><div class="ttname"><a href="class_scheduler.html#ae84f19f548d606f50fba69d00fe691b1">Scheduler::schedule</a></div><div class="ttdeci">void schedule(const Event &amp;event)</div><div class="ttdef"><b>Definition:</b> <a href="_scheduler_8cpp_source.html#l00056">Scheduler.cpp:56</a></div></div>
<div class="ttc" id="class_traffic_generator_html_aa1943a93355f1856e639a0f163413249"><div class="ttname"><a href="class_traffic_generator.html#aa1943a93355f1856e639a0f163413249">TrafficGenerator::createInstanceTrafficEvent</a></div><div class="ttdeci">virtual std::shared_ptr&lt; Token &gt; createInstanceTrafficEvent(bool recordRoute=false)=0</div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8cpp_source.html#l00075">TrafficGenerator.cpp:75</a></div></div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_a339f12bf7824af352d0dad4d65c3e353"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#a339f12bf7824af352d0dad4d65c3e353">QcnSensorTrafficGenerator::getLatitude</a></div><div class="ttdeci">double getLatitude() const </div><div class="ttdoc">Get Latitude. </div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8cpp_source.html#l00141">QcnSensorTrafficGenerator.cpp:141</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a84eef27cdbfa66bbf8c14e0128196a62"><div class="ttname"><a href="class_traffic_generator.html#a84eef27cdbfa66bbf8c14e0128196a62">TrafficGenerator::eventType</a></div><div class="ttdeci">EventType eventType</div><div class="ttdoc">Event type that this generator will produce. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00046">TrafficGenerator.h:46</a></div></div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_a838619c582b3df71b009b6cd1de56092"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#a838619c582b3df71b009b6cd1de56092">QcnSensorTrafficGenerator::setLongitude</a></div><div class="ttdeci">void setLongitude(double longitude)</div><div class="ttdoc">Set Longitude. </div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8cpp_source.html#l00186">QcnSensorTrafficGenerator.cpp:186</a></div></div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_ac35f6f0c94d934b454ad68f743bfb011"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#ac35f6f0c94d934b454ad68f743bfb011">QcnSensorTrafficGenerator::getLongitude</a></div><div class="ttdeci">double getLongitude() const </div><div class="ttdoc">Get Longitude. </div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8cpp_source.html#l00150">QcnSensorTrafficGenerator.cpp:150</a></div></div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_a375d3eaf1ce7792d46f13bd96900c914"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#a375d3eaf1ce7792d46f13bd96900c914">QcnSensorTrafficGenerator::setQcnExplorerSensorId</a></div><div class="ttdeci">void setQcnExplorerSensorId(unsigned int qcnExplorerSensorId)</div><div class="ttdoc">Set QCN Explorer Sensor Id. </div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8cpp_source.html#l00195">QcnSensorTrafficGenerator.cpp:195</a></div></div>
<div class="ttc" id="class_traffic_generator_html_a9569cd494b926b84f384c7380349d51a"><div class="ttname"><a href="class_traffic_generator.html#a9569cd494b926b84f384c7380349d51a">TrafficGenerator::scheduler</a></div><div class="ttdeci">Scheduler &amp; scheduler</div><div class="ttdoc">Reference to Scheduler object, such that traffic generators may schedule their events. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00044">TrafficGenerator.h:44</a></div></div>
<div class="ttc" id="class_simulator_globals_html"><div class="ttname"><a href="class_simulator_globals.html">SimulatorGlobals</a></div><div class="ttdoc">Simulator-scope variables and parameters. </div><div class="ttdef"><b>Definition:</b> <a href="_simulator_globals_8h_source.html#l00158">SimulatorGlobals.h:158</a></div></div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_a7c5683f657aa8c44344985acceae2cd1"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#a7c5683f657aa8c44344985acceae2cd1">QcnSensorTrafficGenerator::setRegionId</a></div><div class="ttdeci">void setRegionId(unsigned int regionId)</div><div class="ttdoc">Set Region ID. </div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8cpp_source.html#l00204">QcnSensorTrafficGenerator.cpp:204</a></div></div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_a94979da414e7b879f6c31642c3b449f6"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#a94979da414e7b879f6c31642c3b449f6">QcnSensorTrafficGenerator::qcnExplorerSensorId</a></div><div class="ttdeci">unsigned int qcnExplorerSensorId</div><div class="ttdoc">Sensor ID as assigned by QCNExplorer. </div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8h_source.html#l00039">QcnSensorTrafficGenerator.h:39</a></div></div>
<div class="ttc" id="class_qcn_sensor_traffic_generator_html_a7475a4d95a64a53e641ed8d7b2fd167b"><div class="ttname"><a href="class_qcn_sensor_traffic_generator.html#a7475a4d95a64a53e641ed8d7b2fd167b">QcnSensorTrafficGenerator::regionId</a></div><div class="ttdeci">unsigned int regionId</div><div class="ttdoc">Region ID as assigned by QCNExplorer. </div><div class="ttdef"><b>Definition:</b> <a href="_qcn_sensor_traffic_generator_8h_source.html#l00040">QcnSensorTrafficGenerator.h:40</a></div></div>
<div class="ttc" id="class_traffic_generator_html"><div class="ttname"><a href="class_traffic_generator.html">TrafficGenerator</a></div><div class="ttdoc">TrafficGenerator parent class. </div><div class="ttdef"><b>Definition:</b> <a href="_traffic_generator_8h_source.html#l00042">TrafficGenerator.h:42</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Jan 6 2014 12:30:37 for QCNSim by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
